<?php
include("conf/config.php");
//Temp Kinderzimmer
$url = "http://$ccuurl/config/xmlapi/state.cgi?datapoint_id=$temp_kizi";
$file = file_get_contents("$url", false, $context);
$xml = simplexml_load_string($file);
$res = ((string) $xml->datapoint[0]['value']);
$temp = round($res, 2);

//Feuchte Kinderzimmer
$url = "http://$ccuurl/config/xmlapi/state.cgi?datapoint_id=$feuchte_kizi";
$file = file_get_contents("$url", false, $context);
$xml = simplexml_load_string($file);
$res = ((string) $xml->datapoint[0]['value']);
$feuchte = round($res, 2);

//SOLL Kinderzimmer
$url = "http://$ccuurl/config/xmlapi/state.cgi?datapoint_id=$temp_soll_kizi";
$file = file_get_contents("$url", false, $context);
$xml = simplexml_load_string($file);
$res = ((string) $xml->datapoint[0]['value']);
$soll = round($res, 2);


?>